<?php

namespace app\api;

use app\middleware\User;
use core\Controller;
use core\Request;
use core\Response;

class UserController extends Controller
{

    public $middlewares = [User::class];

    public function login(Request $request, Response $response): void {
        $response->text(['from /user/login']);
    }

    public function logout(Request $request, Response $response): void {
        $response->text('from /user/logout');
    }
}
